<?php
$t1 = microtime(true);
memory_get_usage();

$a = false;//echo gettype($a);

if(gettype($a) == 'integer'){
  echo "Yes $a is integer";
} else
if(gettype($a) == 'double'){
  echo "Yes $a is double";
} else
if(gettype($a) == 'string'){
  echo "Yes $a is string";
} else
if(gettype($a) == 'boolean'){
  echo "Yes $a is boolean";
}
$t2 = microtime(true);
echo "Time Taken : ".($t2-$t1);
